home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / QuickTime / QuickTime VR / Make QTVR Panorama / CPrefsWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  878 b   |  58 lines  |  [TEXT/CWIE]

  1. /*
  2.     A window that provides the user interface for editing preferences.
  3.     
  4.     Created 29 Jan 1996 by EGH
  5.     
  6.     Copyright © 1996, Apple Computer, Inc. All rights reserved.
  7. */
  8.  
  9. #pragma once
  10.  
  11. #include <Movies.h>
  12.  
  13. #include <LDialogBox.h>
  14.  
  15. #include "CApp.h"
  16.  
  17. class CPrefsWindow :
  18.     public LDialogBox,
  19.     public LBroadcaster
  20. {
  21. public:
  22.  
  23.     enum { class_ID = 'pref' };
  24.     
  25.     static CPrefsWindow *CreatePrefsWindowWindowStream(
  26.         LStream    *inStream);
  27.     
  28.     CPrefsWindow(
  29.         LStream    *inStream);
  30.     
  31.     virtual ~CPrefsWindow();
  32.     
  33.     virtual void FinishCreateSelf();
  34.     
  35.     virtual void ListenToMessage(
  36.         MessageT inMessage,
  37.         void *ioParam);
  38.     
  39.     void SetCompText();
  40.  
  41. protected:
  42.  
  43.     virtual void FindCommandStatus(
  44.         CommandT inCommand,
  45.         Boolean &outEnabled,
  46.         Boolean &outUsesMark,
  47.         Char16 &outMark,
  48.         Str255 outName);
  49.  
  50. private:
  51.  
  52.     CodecType mCodec;
  53.     CodecQ mSpatialQuality;
  54.     Int16 mDepth;
  55.     
  56.     P2VRPrefsHdl mPrefsHdl;
  57. };
  58.